<?php
namespace Admin\Model;
use Think\Model;

class GoodsModel extends Model {

    protected $_validate = array (
		array('name','require','Name cannot be empty', 1),
		array('price','require','Price cannot be empty', 1),
		array('content','require','Content Time cannot be empty', 1),
    );	

    protected $_auto = array (
		array('createTime','time',Model::MODEL_INSERT,'function'),
		array('updateTime','time',Model::MODEL_BOTH,'function'),	
	);

}
?>